import { lazyInst } from "../util/module";
import { core } from ".";

class DataSource {
  foo() {
    console.log("DataSource foo called");
  }

  addData(data: any) {
    core.ot.foo();
    console.log("Data added:", data);
  }
}

export const ds = lazyInst(DataSource);
export const _assign_ = { ds };

declare global {
  interface CoreModule {
    ds: DataSource;
  }
}
